﻿<UserControl x:Class="DeepZoomSample.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="500" Height="500">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="8"/>
            <ColumnDefinition Width="45"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="8"/>
            <RowDefinition Height="64"/>
            <RowDefinition Height="64"/>
            <RowDefinition Height="64"/>
            <RowDefinition Height="64"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <MultiScaleImage Source='deepzoomsimple/dzc_output.xml' 
                         x:Name='ZoomImage' 
                         MouseLeftButtonDown="ZoomImage_MouseLeftButtonDown" 
                         MouseLeftButtonUp="ZoomImage_MouseLeftButtonUp" 
                         MouseMove="ZoomImage_MouseMove" 
                         ImageOpenSucceeded="ZoomImage_ImageOpenSucceeded" 
                         MotionFinished="ZoomImage_MotionFinished"  
                         Grid.Row="0" Grid.RowSpan="6"  Grid.Column="0" Grid.ColumnSpan="3"/>
        <Image Source="home.png" MouseLeftButtonUp="Home_Click" x:Name='Home' Grid.Row="1" Grid.Column="1" ></Image>
        <Image Source="zoomin.png" MouseLeftButtonUp="ZoomIn_Click" x:Name='ZoomIn' Grid.Row="2" Grid.Column="1" ></Image>
        <Image Source="zoomout.png" MouseLeftButtonUp="ZoomOut_Click" x:Name='ZoomOut' Grid.Row="3" Grid.Column="1"></Image>
    </Grid>
</UserControl>
